﻿using System;
using System.ComponentModel.DataAnnotations;

namespace HotelManageSystem.Domain.Entities
{
    /// <summary>
    /// Class Name：  Deliveryorder
    /// Author:       Fei Wang
    /// Creation Date: 2011-12-29
    /// Description:  出库单 ，出库单号用时间表示
    /// QA:
    /// </summary>
    public class Deliveryorder
    {
        [Key]
        [Required]
        public int ID { get; set; }

        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Required]
        public string DeliveryorderID { get; set; }

        [Required]
        public decimal Outprice { get; set; }
        [Required]
        public int Count { get; set; }
        [Required]
        public decimal Total { get; set; }

        [Required]
        public DateTime time { get; set; }
        //出货明细
        public virtual ProductDetailOut ProductDetailIOut { get; set; }

        public virtual Product Product { get; set; }

        public virtual Inventory Inventory { get; set; }
        //货品出库负责人
       
        public string Billproducer { get; set; }
       //货品出库制单人
        
        public virtual Employee Employee { get; set; }
    }
}
